-- GENERATED SPELL FOR [Shoveltusk Stag] --


function spell0_23691(pUnit, Event) --@Gore,n/a--
pUnit:FullCastSpellOnTarget(32019,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23691', 15000, 1)
end

function spell1_23691(pUnit, Event) --@Shoveltusk Charge,Self--
pUnit:FullCastSpellOnTarget(55860,pUnit)
pUnit:RegisterEvent('Sorts_23691', 5297, 1)
end

function Sorts_23691(pUnit, Event)
local choix_sorts_23691 = math.random(0, 1)
if choix_sorts_23691 == 0 then
pUnit:RegisterEvent('spell0_23691', 1, 1)
end
if choix_sorts_23691 == 1 then
pUnit:RegisterEvent('spell1_23691', 1, 1)
end
end

function mob23691_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23691', math.random(1500, 3000), 1)
end

function mob23691_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23691_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23691_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23691, 1, 'mob23691_Action')
RegisterUnitEvent(23691, 2, 'mob23691_Leave')
RegisterUnitEvent(23691, 3, 'mob23691_Kill')
RegisterUnitEvent(23691, 4, 'mob23691_Die')
